package cn.starrysky108.simpleerp.system.entity;

import cn.starrysky108.simpleerp.core.base.BaseEntity;
import cn.starrysky108.simpleerp.core.enums.FileTypeEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 资源文件表
 * </p>
 *
 * @author Carl Lee
 * @since 2021-08-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("system_file")
@ApiModel(value = "SystemFile对象", description = "资源文件表")
public class SystemFile extends BaseEntity {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "文件名")
    @TableField("file_name")
    private String fileName;

    @ApiModelProperty(value = "资源类型 ")
    @TableField("type")
    private FileTypeEnum type;

    @ApiModelProperty(value = "文件大小")
    @TableField("file_size")
    private Long fileSize;

    @ApiModelProperty(value = "文件后缀")
    @TableField("extension")
    private String extension;

    @ApiModelProperty(value = "路径")
    @TableField("path")
    private String path;
    @ApiModelProperty(value = "访问地址")
    @TableField("url")
    private String url;
    @ApiModelProperty(value = "是否在使用")
    @TableField("used")
    private Boolean used;

    @ApiModelProperty(value = "md5校验值")
    @TableField("md5")
    private String md5;

}
